<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<!-- Head -->
<head>
    <meta charset="utf-8"/>
    <title>${session.SOFT_NAME }_智能办公系统</title>
    <meta name="description" content="Dashboard"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <link rel="stylesheet" href="/module/zTree_v3/css/bootstrapStyle/bootstrapStyle.css" type="text/css">
    <link href="/module/bootstrap-table/bootstrap-table.css" rel="stylesheet"/>
    <link rel="stylesheet" type="text/css" href="/module/jeDate/jedate.css"/>
    <%include("/app/resapi/style.html"){}%>
    <style type="text/css">
        #myTable tr td {
            vertical-align: middle;
        }

        .table > tbody > tr > td {
            vertical-align: middle;
        }
    </style>
</head>
<body style="overflow-y: auto;">
<div class="page-body" style="padding: 0px;" id="app">
    <div class="main-container container-fluid">
        <div class="page-container">
            <div class="col-md-12 col-sm-12 col-xs-12" style="padding: 0px">
                <div class="tab-content tabs-flat" style="padding-top: 0px">
                    <div class="buttons-preview" id="toobar">
                        <%if(managePriv.fileCreateUser>0){%>
                        <a href="javascript:void(0);" class="btn btn-primary js-create">创建文件</a>
                        <%}%>
                        <span style="margin-left: 10px;">文件状态:</span>
                        <span>
                            <select class="form-control" style="width: 150px; display: inline-block;" id="fileStatus" name="fileStatus">
                                <option value="">全部</option>
                                <option value="0">生效中</option>
                                <option value="1">已作废</option>
                            </select>
						</span>

                        <span style="margin-left: 10px;">发布时间:</span>
                        <span>
                            <input type="text" class="form-control" id="beginTime" readonly="readonly" style="width: 150px; display: inline-block;" name="beginTime" placeholder="${i18n('system.beginTime')}">
						</span>
                        <span> - </span>
                        <span>
                            <input type="text" class="form-control" id="endTime" readonly="readonly" style="width: 150px; display: inline-block;" name="endTime" placeholder="${i18n('system.endTime')}">
                        </span>
                        <span style="margin-left: 10px">
                            <a href="javascript:void(0);" class="btn btn-success js-query-but">${i18n('system.search')}</a>
						</span>
                    </div>
                    <table id="myTable"></table>
                </div>
            </div>
        </div>
    </div>
</div>

<div class="modal fade bs-example-modal-lg" id="createfilemodal" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true" style="display: none;">
    <div class="modal-dialog">
        <div class="modal-content">

            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                <h4 class="modal-title" id="myLargeModalLabel">新建文件</h4>
            </div>
            <div class="modal-body">
                <form action="" class="form-horizontal">
                    <div class="form-group">
                        <label class="col-sm-2 control-label no-padding-right">${i18n('system.sortNo')}:</label>
                        <div class="col-sm-10">
                            <input type="number" class="form-control" id="sortNo" name="sortNo" placeholder="${i18n('system.sortNo')}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label no-padding-right">文件名称:</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" id="fileName" name="fileName" placeholder="文件名称">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label no-padding-right">文件版本:</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" id="version" name="version" placeholder="文件版本">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label no-padding-right" style="padding-top: 2px;">选择文件:</label>
                        <div class="col-sm-10">
                            <div id="show_attach"></div>
                            <a class="addfile" href="javascript:void(0)">${i18n('fileupload')}
                                <input data_value="" type="file" onchange="singleFileUpLoad('filemap','attach');" hidefocus="true" size="1" id="attach" name="attach" class="addfile"/></a>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label no-padding-right" style="padding-top: 2px;">消息提醒:</label>
                        <div class="col-sm-10" style="padding-left: 0px" id="msgType">
                        </div>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-warning" data-dismiss="modal">${i18n('cancel')}</button>
                <button type="button" class="btn btn-primary js-filesave">${i18n('ok')}</button>
            </div>
        </div>
        <!-- /.modal-content -->
    </div>
    <!-- /.modal-dialog -->
</div>
</body>
<%include("/app/resapi/sysjs.html"){} %>
<script type="text/javascript">
    let itemId = "${parameter.itemId}";
    let fileManagePriv = "${managePriv.fileManageUser}";
    let fileCreatePriv = "${managePriv.fileCreateUser}";
</script>
<script type="text/javascript" src="/module/fileupload/pageoffice.js" id="po_js_main"></script>
<script type="text/javascript" src="/module/bootstrap-table/bootstrap-table.js"></script>
<script type="text/javascript" src="/module/bootstrap-table/bootstrap-table-${localeLangCountry()}.js"></script>
<script type="text/javascript" src="/module/fileupload/ajaxfileupload.js"></script>
<script type="text/javascript" src="/module/fileupload/fileupload.js"></script>
<script type="text/javascript" src="/module/jeDate/jeDate.js"></script>
<script type="text/javascript" src="/gobal/js/page/file/filelist.js"></script>
</html>
